class ConnectionInfo {
  String id;
  String object;
  String status;
  String connectionId;
  String sessionId;
  int createdAt;
  String type;
  bool record;
  String role;
  dynamic kurentoOptions;
  String rtspUri;
  dynamic adaptativeBitrate;
  dynamic onlyPlayWithSubscribers;
  dynamic networkCache;
  dynamic serverData;
  String token;
  dynamic activeAt;
  String location;
  String ip;
  String platform;
  String clientData;
  String publishers;
  String subscribers;

  ConnectionInfo({
    this.id,
    this.object,
    this.status,
    this.connectionId,
    this.sessionId,
    this.createdAt,
    this.type,
    this.record,
    this.role,
    this.kurentoOptions,
    this.rtspUri,
    this.adaptativeBitrate,
    this.onlyPlayWithSubscribers,
    this.networkCache,
    this.serverData,
    this.token,
    this.activeAt,
    this.location,
    this.ip,
    this.platform,
    this.clientData,
    this.publishers,
    this.subscribers,
  });

  factory ConnectionInfo.fromJson(Map<String, dynamic> json) {
    return ConnectionInfo(
      id: json["id"],
      object: json["object"],
      status: json["status"],
      connectionId: json["connectionId"],
      sessionId: json["sessionId"],
      createdAt: json["createdAt"],
      type: json["type"],
      record: json["record"],
      role: json["role"],
      kurentoOptions: json["kurentoOptions"],
      rtspUri: json["rtspUri"],
      adaptativeBitrate: json["adaptativeBitrate"],
      onlyPlayWithSubscribers: json["onlyPlayWithSubscribers"],
      networkCache: json["networkCache"],
      serverData: json["serverData"],
      token: json["token"],
      activeAt: json["activeAt"],
      location: json["location"],
      ip: json["ip"],
      platform: json["platform"],
      clientData: json["clientData"],
      publishers: json["publishers"],
      subscribers: json["subscribers"],
    );
  }
}
